Ext.define('appmod.view.resources.menu.AuthView', {
    extend: 'Ext.tree.Panel',
    alias: 'widget.menuauthview',
	rootVisible:false,	
    initComponent: function() {
        var me = this;
        Ext.applyIf(me, {
			columns:[{
            	xtype: 'treecolumn', //this is so we know which column will show the tree
            	text: '菜单名称',
            	flex: 2,
            	sortable: true,
            	dataIndex: 'text'
        	}, {
				xtype : 'numbercolumn',
				text : '层次',
				dataIndex:'menuLevel',
				width:100,
				format:'0'
			} ,  {
                    xtype: 'booleancolumn',
                    dataIndex: 'disabled',
                    sortable: false,
                    width: 100,
                    text: '状态',
                    trueText: '禁用',
                    falseText: '启用'
            }]
        });

        me.callParent(arguments);
    }
});